﻿using AdventureWorks.Domain;
using FluentNHibernate.Mapping;
namespace AdventureWorks.DataAccess.Mappings
{
    public class LocationMapping : ClassMap<Location>
    {
        public LocationMapping() : base()
        {
            Schema("Production");
            Table("Location");
            Id(x => x.Id, "LocationId").GeneratedBy.Native();
            Map(x => x.Name);
            Map(x => x.CostRate);
            Map(x => x.Availability);
        }
    }
}
